Skip to content

ARROW-17418: [Doc][Java] Dataset library able to compile with mvn command#13889

Merged
kou merged 8 commits into
apache:masterfrom
davisusanibar:ARROW-17418
Sep 14, 2022
Merged

ARROW-17418: [Doc][Java] Dataset library able to compile with mvn command#13889
kou merged 8 commits into
apache:masterfrom
davisusanibar:ARROW-17418

Conversation

@davisusanibar

Copy link
Copy Markdown
Contributor

Dataset/ORC/Gandiva library (.so / .dylib) able to compile with mvn command

$ mvn clean generate-resources -Pgenerate-jnicpp-dylib_so -DARROW_DATASET=ON -DARROW_ORC=ON -DARROW_GANDIVA=ON -N

@github-actions

Copy link
Copy Markdown

Comment thread java/pom.xml Outdated
<configuration>
<executable>cmake</executable>
<commandlineArgs>
-DARROW_BOOST_USE_SHARED=OFF

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can use ARROW_DEPENDENCY_USE_SHARED=OFF instead of multiple ARROW_*_USE_SHARED=OFFs.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed

Comment thread java/pom.xml Outdated
-DCMAKE_INSTALL_LIBDIR=lib
-DCMAKE_INSTALL_PREFIX=../java-dist
-DCMAKE_UNITY_BUILD=ON
-Dre2_SOURCE=BUNDLED

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can use ARROW_DEPENDENCY_SOURCE=BUNDLED instead of multiple *_SOURCE=BUNDLEDs.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed

Comment thread java/pom.xml Outdated
-DARROW_ORC=${ARROW_ORC}
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_INSTALL_LIBDIR=lib
-DCMAKE_INSTALL_PREFIX=../java-dist

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use the arrow.c.jni.dist.dir property instead of ../java-dist?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added

Comment thread java/pom.xml Outdated
<configuration>
<executable>cmake</executable>
<commandlineArgs>
--build . --target install

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--config Release may be missed.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added

@lwhite1

lwhite1 commented Sep 6, 2022

Copy link
Copy Markdown
Contributor

LGTM. Is there any reason this can't be merged?

Comment thread java/pom.xml Outdated
Comment thread java/pom.xml Outdated
-DCMAKE_INSTALL_LIBDIR=lib
-DCMAKE_INSTALL_PREFIX=${arrow.cpp.build.dir}
-DCMAKE_UNITY_BUILD=ON
-DARROW_DEPENDENCY_SOURCE=BUNDLED

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you sort this list in alphabetical order?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that it's not done. Could you check again? Or should I push a commit for it?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorted

Comment thread java/pom.xml Outdated

@kou kou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

We can merge this after we sort lists.

Comment thread java/pom.xml Outdated
Comment on lines +944 to +962
-DARROW_DEPENDENCY_USE_SHARED=OFF
-DARROW_CSV=ON
-DARROW_DATASET=ON
-DARROW_FILESYSTEM=ON
-DARROW_GANDIVA=ON
-DARROW_GANDIVA_JAVA=ON
-DARROW_GANDIVA_STATIC_LIBSTDCPP=ON
-DARROW_JNI=ON
-DARROW_ORC=ON
-DARROW_PARQUET=ON
-DARROW_PLASMA=ON
-DARROW_PLASMA_JAVA_CLIENT=ON
-DARROW_S3=ON
-DARROW_USE_CCACHE=ON
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_INSTALL_LIBDIR=lib
-DCMAKE_INSTALL_PREFIX=java-dist
-DCMAKE_UNITY_BUILD=ON
-DARROW_DEPENDENCY_SOURCE=BUNDLED

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you sort this list in alphabetical order?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorted

Comment thread java/pom.xml Outdated
Comment on lines +994 to +999
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_INSTALL_PREFIX=${arrow.c.jni.dist.dir}
-DCMAKE_PREFIX_PATH=${project.basedir}/../java-dist
-DARROW_JAVA_JNI_ENABLE_DEFAULT=OFF
-DARROW_JAVA_JNI_ENABLE_DATASET=ON
-DBUILD_TESTING=OFF

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you sort this list in alphabetical order?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorted

Comment thread java/pom.xml Outdated
-DCMAKE_INSTALL_LIBDIR=lib
-DCMAKE_INSTALL_PREFIX=${arrow.cpp.build.dir}
-DCMAKE_UNITY_BUILD=ON
-DARROW_DEPENDENCY_SOURCE=BUNDLED

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that it's not done. Could you check again? Or should I push a commit for it?

@kou

kou commented Sep 13, 2022

Copy link
Copy Markdown
Member

Could you rebase on the master?
(Merging #13881 caused a conflict.)

@davisusanibar

Copy link
Copy Markdown
Contributor Author

Could you rebase on the master? (Merging #13881 caused a conflict.)

Rebase + Update documentation to use new maven profiles, please your review, thanks

@kou kou merged commit f4e79b1 into apache:master Sep 14, 2022
@ursabot

ursabot commented Sep 14, 2022

Copy link
Copy Markdown

Benchmark runs are scheduled for baseline = f57e1ba and contender = f4e79b1. f4e79b1 is a master commit associated with this PR. Results will be available as each benchmark for each run completes.
Conbench compare runs links:
[Finished ⬇️0.0% ⬆️0.0%] ec2-t3-xlarge-us-east-2
[Finished ⬇️0.51% ⬆️0.0%] test-mac-arm
[Failed ⬇️0.0% ⬆️0.0%] ursa-i9-9960x
[Finished ⬇️0.32% ⬆️0.04%] ursa-thinkcentre-m75q
Buildkite builds:
[Finished] f4e79b10 ec2-t3-xlarge-us-east-2
[Finished] f4e79b10 test-mac-arm
[Failed] f4e79b10 ursa-i9-9960x
[Finished] f4e79b10 ursa-thinkcentre-m75q
[Finished] f57e1bad ec2-t3-xlarge-us-east-2
[Finished] f57e1bad test-mac-arm
[Failed] f57e1bad ursa-i9-9960x
[Finished] f57e1bad ursa-thinkcentre-m75q
Supported benchmarks:
ec2-t3-xlarge-us-east-2: Supported benchmark langs: Python, R. Runs only benchmarks with cloud = True
test-mac-arm: Supported benchmark langs: C++, Python, R
ursa-i9-9960x: Supported benchmark langs: Python, R, JavaScript
ursa-thinkcentre-m75q: Supported benchmark langs: C++, Java

zagto pushed a commit to zagto/arrow that referenced this pull request Oct 7, 2022
…mand (apache#13889)

Dataset/ORC/Gandiva library (.so / .dylib) able to compile with mvn command

$ mvn clean generate-resources -Pgenerate-jnicpp-dylib_so -DARROW_DATASET=ON -DARROW_ORC=ON -DARROW_GANDIVA=ON -N

Authored-by: david dali susanibar arce <davi.sarces@gmail.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
pribor pushed a commit to GlobalWebIndex/arrow that referenced this pull request Oct 24, 2025
…mand (apache#13889)

Dataset/ORC/Gandiva library (.so / .dylib) able to compile with mvn command

$ mvn clean generate-resources -Pgenerate-jnicpp-dylib_so -DARROW_DATASET=ON -DARROW_ORC=ON -DARROW_GANDIVA=ON -N

Authored-by: david dali susanibar arce <davi.sarces@gmail.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants